#e
#Title[俕uԍ炫CN|bhv]
#Text[G@ĹuHv
ՓxŒł]
#ScriptVersion[2]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let name = "俕uԍ炫CN|bhv";

 @Initialize {
  CutIn(KOUMA, name, "", 0, 0, 0, 0);
  SetX(GetCenterX);
  SetY(GetCenterY - 120);
  SetLife(9000);
  SetScore(1000000);
  SetTimer(99);

  LoadGraphic(img);
  SetTexture(img);
  SetGraphicRect(64, 0, 128, 64);

  TMain;
 }

 @MainLoop {
  SetCollisionA(GetX, GetY, 24);
  SetCollisionB(GetX, GetY, 24);

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
  TShot2;
  TShot3;
  TShot4;
 }

 task TShot {
  let x = rand(GetClipMinX, GetClipMaxX);
  let y = 0;
  let ym = 0;
  yield;

  loop {
   loop(5) { yield; }
   CreateShot01(x, GetClipMaxY - y, 0, -90, GREEN11, 0);
   y += 5;
   if(y == 460) {
    y = 0;
    CreateShotA(1, x, ym, 0);
    SetShotDataA(1, 0, 0, 0, 0, 0, 0, PURPLE03);
    FireShot(1);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    ym = rand(GetClipMinY, GetClipMaxY);
   }
  }
 }

 task TShot2 {
  let x = rand(GetClipMinX, GetClipMaxX);
  let y = 0;
  let ym = 0;
  yield;

  loop {
   loop(9) { yield; }
   CreateShot01(x, GetClipMaxY - y, 0, -90, GREEN11, 0);
   y += 5;
   if(y == 460) {
    y = 0;
    CreateShotA(1, x, ym, 0);
    SetShotDataA(1, 0, 0, 0, 0, 0, 0, PURPLE03);
    FireShot(1);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    ym = rand(GetClipMinY, GetClipMaxY);
   }
  }
 }

 task TShot3 {
  let x = rand(GetClipMinX, GetClipMaxX);
  let y = 0;
  let ym = 0;
  yield;

  loop {
   loop(14) { yield; }
   CreateShot01(x, GetClipMaxY - y, 0, -90, GREEN11, 0);
   y += 5;
   if(y == 460) {
    y = 0;
    CreateShotA(1, x, ym, 0);
    SetShotDataA(1, 0, 0, 0, 0, 0, 0, PURPLE03);
    FireShot(1);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    ym = rand(GetClipMinY, GetClipMaxY);
   }
  }
 }

 task TShot4 {
  let x = rand(GetClipMinX, GetClipMaxX);
  let y = 0;
  let ym = 0;
  yield;

  loop {
   loop(2) { yield; }
   CreateShot01(x, GetClipMaxY - y, 0, -90, GREEN11, 0);
   y += 5;
   if(y == 460) {
    y = 0;
    CreateShotA(1, x, ym, 0);
    SetShotDataA(1, 0, 0, 0, 0, 0, 0, PURPLE03);
    FireShot(1);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    CreateShotA(2, x, ym, 0);
    SetShotDataA(2, 0, rand(1, 2), rand(0, 360), 0, 0, 2, PURPLE11);
    FireShot(2);
    ym = rand(GetClipMinY, GetClipMaxY);
   }
  }
 }

 function wait(w) {
  loop(w) { yield; }
 }

}